import { defineStore, StoreDefinition } from 'pinia'
export const allStore: StoreDefinition = defineStore('allstore', {
  state: () => ({
    username: '',
  }),
  persist: {
    key: 'demo-key', // 本地存储key
  },
  actions: {
    async setUserInfo(name) {
      this.username = name
    },
  },
})